package cn.jslancer.webx;

import cn.jslancer.webx.router.Router;
import cn.jslancer.webx.router.RouterImpl;
import cn.jslancer.webx.server.HttpServer;
import cn.jslancer.webx.server.Server;

/**
 * @author jslancer
 * @date 2018/7/23 23:08
 */
public class Webx {

    private String application;

    private static Webx instanse = new Webx();

    private Router router;

    private Server server;

    private Webx() {
        router = new RouterImpl();
    }

    public static Webx webx() {
        return instanse;
    }

    public Server createServer() {
        server = new HttpServer();
        return server;
    }

    public Router router() {
        router = new RouterImpl();
        return router;
    }

//    public void run() {
//        server.listen(8080);
//    }

}
